import request from '@/utils/request'

// 查询活动培训报名信息列表
export function listRegistration(query) {
  return request({
    url: '/activity/registration/list',
    method: 'get',
    params: query
  })
}

// 查询活动培训报名信息详细
export function getRegistration(applicationId) {
  return request({
    url: '/activity/registration/' + applicationId,
    method: 'get'
  })
}

// 新增活动培训报名信息
export function addRegistration(data) {
  return request({
    url: '/activity/registration',
    method: 'post',
    data: data
  })
}

// 修改活动培训报名信息
export function updateRegistration(data) {
  return request({
    url: '/activity/registration',
    method: 'put',
    data: data
  })
}

// 删除活动培训报名信息
export function delRegistration(applicationId,activityId) {
  return request({
    url: '/activity/registration/' + applicationId+"/"+activityId,
    method: 'delete'
  })
}


